package coap.messages;

public class MethodCodes {
	public static final int GET = 1;
	public static final int POST = 2;
	public static final int PUT = 3;
	public static final int DELETE = 4;
	
	public static String getString(int value){
		switch(value){
		case GET:
			return "GET";
		case POST:
			return "POST";
		case PUT:
			return "PUT";
		case DELETE:
			return "DELETE";
		default:
			return "UNKNOWN";
		}
	}
}
